<template>
  <Person v-if="isShow"></Person>
  <button @click="isShow = !isShow">点击展示</button>
</template>

<script lang="ts" setup name="App">
  import Person from './components/Person.vue'
  import { ref, onMounted } from 'vue';

  let isShow = ref(true)

  onMounted(() => {
    console.log('父组件挂载完成');

  })

</script>

<style scoped></style>
